package com.leyou.item.dto;


import com.leyou.item.pojo.AclModule;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.assertj.core.util.Lists;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author:yanjizhw@163.com
 * @date:2019-10-12 11:25
 * 描述:
 * @since:1.0.0
 */
@Getter
@Setter
@ToString
public class AclModuleLevelDto extends AclModule {

    private List<AclModuleLevelDto> aclModuleList = new ArrayList();

    private List<AclDto> aclList = Lists.newArrayList();

    public static AclModuleLevelDto adapt(AclModule aclModule) {
        AclModuleLevelDto dto = new AclModuleLevelDto();
        BeanUtils.copyProperties(aclModule, dto);
        return dto;
    }
}
